﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ARCam3D.Tuple
{
    public class Point2D : Tuple2D
    {
        public static double GetDistance(Point2D p1, Point2D p2)
        {
            return Math.Sqrt((p2.x - p1.x) * (p2.x - p1.x) + (p2.y - p1.y) * (p2.y - p1.y));
        }

        public Point2D() : base() { }

        public Point2D(double x, double y) : base(x, y) { }

        public Point2D(Tuple2D tuple) : base(tuple) { }
    }
}
